﻿using lingopen.Entity;
using lingopen.Entity.CRM;
using lingopen.Entity.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lingopen.Application.CRM
{
    public class SimpleCustomerModel
    {
        public string Id { get; set; }
        public string Name { get; set; }

        public static SimpleCustomerModel Create(CRM_Customer role)
        {
            SimpleCustomerModel model = new SimpleCustomerModel();

            model.Id = role.Id;
            model.Name = role.Name;

            return model;
        }
    }
    public class SimplePMSModel
    {
        public string Id { get; set; }
        public string Name { get; set; }

        public static SimplePMSModel Create(CRM_PMS input)
        {
            SimplePMSModel model = new SimplePMSModel();

            model.Id = input.Id;
            model.Name = input.Name;

            return model;
        }
    }

}
